package com.ktgj.hotel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.hotel.mapper.HotelOrderRefundapplyMapper;
import com.ktgj.hotel.domain.HotelOrderRefundapply;
import com.ktgj.hotel.service.IHotelOrderRefundapplyService;

/**
 * 退款申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-08
 */
@Service
public class HotelOrderRefundapplyServiceImpl implements IHotelOrderRefundapplyService 
{
    @Autowired
    private HotelOrderRefundapplyMapper hotelOrderRefundapplyMapper;

    /**
     * 查询退款申请
     * 
     * @param refunid 退款申请ID
     * @return 退款申请
     */
    @Override
    public HotelOrderRefundapply selectHotelOrderRefundapplyById(Long refunid)
    {
        return hotelOrderRefundapplyMapper.selectHotelOrderRefundapplyById(refunid);
    }

    /**
     * 查询退款申请列表
     * 
     * @param hotelOrderRefundapply 退款申请
     * @return 退款申请
     */
    @Override
    public List<HotelOrderRefundapply> selectHotelOrderRefundapplyList(HotelOrderRefundapply hotelOrderRefundapply)
    {
        return hotelOrderRefundapplyMapper.selectHotelOrderRefundapplyList(hotelOrderRefundapply);
    }

    /**
     * 新增退款申请
     * 
     * @param hotelOrderRefundapply 退款申请
     * @return 结果
     */
    @Override
    public int insertHotelOrderRefundapply(HotelOrderRefundapply hotelOrderRefundapply)
    {
        return hotelOrderRefundapplyMapper.insertHotelOrderRefundapply(hotelOrderRefundapply);
    }

    /**
     * 修改退款申请
     * 
     * @param hotelOrderRefundapply 退款申请
     * @return 结果
     */
    @Override
    public int updateHotelOrderRefundapply(HotelOrderRefundapply hotelOrderRefundapply)
    {
        return hotelOrderRefundapplyMapper.updateHotelOrderRefundapply(hotelOrderRefundapply);
    }

    /**
     * 批量删除退款申请
     * 
     * @param refunids 需要删除的退款申请ID
     * @return 结果
     */
    @Override
    public int deleteHotelOrderRefundapplyByIds(Long[] refunids)
    {
        return hotelOrderRefundapplyMapper.deleteHotelOrderRefundapplyByIds(refunids);
    }

    /**
     * 删除退款申请信息
     * 
     * @param refunid 退款申请ID
     * @return 结果
     */
    @Override
    public int deleteHotelOrderRefundapplyById(Long refunid)
    {
        return hotelOrderRefundapplyMapper.deleteHotelOrderRefundapplyById(refunid);
    }
}
